package com.ophiux.cs.application.consultBase.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.cs.application.core.Throws.ParamException;
import com.ophiux.utils.common.StringUtil;

public class hospitalCreateVadilRequest extends RequestDTO{

	 private String HOSPITAL_NAME;//医院名称

	public String getHOSPITAL_NAME() {
		return HOSPITAL_NAME;
	}

	public void setHOSPITAL_NAME(String hOSPITAL_NAME) {
		HOSPITAL_NAME = hOSPITAL_NAME;
	}

	public void verParam() throws ParamException{
		if(StringUtil.isEmpty(this.HOSPITAL_NAME)) {
			throw new ParamException("医院名称不可为空");
		}
	}
	
	@Override
	public boolean isParamValid() {
		if(StringUtil.isEmpty(this.HOSPITAL_NAME)) {
			return false;
		}
		return true;
	}
	 
}
